﻿using Microsoft.Extensions.Logging;

namespace UtilZ.Dotnet.Extensions.Log
{
    /// <summary>
    /// 
    /// </summary>
    public class RefZLogerProvider : ILoggerProvider
    {
        private static RefZLogerProvider _instance;
        /// <summary>
        /// 
        /// </summary>
        public static RefZLogerProvider Instance
        {
            get { return _instance; }
        }
        static RefZLogerProvider()
        {
            _instance = new RefZLogerProvider();
        }

        /// <summary>
        /// 
        /// </summary>
        public RefZLogerProvider()
        {

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="categoryName"></param>
        /// <returns></returns>
        public ILogger CreateLogger(string categoryName)
        {
            return RefZLoger.Instance;
        }

        /// <summary>
        /// 
        /// </summary>
        public void Dispose()
        {

        }
    }
}
